﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Management;
using System.Timers;
using iTunesLib;
using System.Diagnostics;
//using System.Timers;

namespace SensorDetection
{
    class Program
    {
        static void Main(string[] args)
        {
            
            //TimeSensor x = new TimeSensor();
            //InterfaceSensor i = new InterfaceSensor();
            TestObserver t = new TestObserver();
            TestObserver2 t2 = new TestObserver2();

            USBSensor usb = new USBSensor();
            usb.Attach(t2);

            //iTunesSensor it = new iTunesSensor();

            ProcessSensor proc=new ProcessSensor();
            //proc.Attach(it);
            proc.Attach(t2);

            //x.Attach(t);
            //x.Attach(t2);
            //x.setTime();

            //IESensor ie = new IESensor();
            //ie.Attach(t2);
            //proc.Attach(ie);

            //i.Attach(t);
            //i.Attach(t2);
            //i.set();

            //VolumeSensor v = new VolumeSensor();
            //v.Attach(t2);

            try
            {
                Console.ReadLine();
            }
            catch (Exception e)
            {
                Console.WriteLine("Error: {0}\n{1}",e.Message,e.Source);
            }
            finally
            {

            }

            
            /*List<string> strings = new List<string>();
            int[] x = { 1, 2, 3, 4 };
            Console.WriteLine(strings.GetType());
            Console.WriteLine("vsdfgsdfsd".GetType().ToString());
            Console.WriteLine(x.GetType());
            Process p=new Process();
            Console.WriteLine(p.GetType());*/
        }
    }
}
